<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld" %>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>

<%@page import="com.yaodian100.ec.category.entity.Category"%>
<%@page import="java.util.Date"%><c-rt:set var="frontContentHtmlPath" value='<%=ServerValue.getFrontContentHtmlPath()%>'/>
<c-rt:choose>
	<c-rt:when test="${!empty param.z}"> 
		${pu:reqSet('zCategory', pu:get('com.yaodian100.ec.category.entity.Category', pu:toLong(param.z)))}
		<%
		Category zCategory = (Category)request.getAttribute("zCategory");
		Category category = (Category)request.getAttribute("category");
		if ( zCategory.getIsVisible().equals("Y")){
			if ( zCategory.getEndDate().getTime() < new Date().getTime() )
				zCategory = category; 
		}else{
			zCategory = category;
		}
		%>
		<%
		if ( request.getRequestURI().indexOf("product") != -1 ){
		%>
				<importTag:static path="${frontContentHtmlPath}${zCategory.id}/PROD_NAVIBAR.html"></importTag:static>
		<%
		}else{
		%>
				<importTag:static path="${frontContentHtmlPath}${zCategory.id}/NAVIBAR.html"></importTag:static>
		<%} %>
	</c-rt:when>
	<c-rt:otherwise>
		<%
		if ( request.getRequestURI().indexOf("product") != -1 ){
		%>
				<importTag:static path="${frontContentHtmlPath}${category.id}/PROD_NAVIBAR.html"></importTag:static>
		<%
		}else{
		%>
				<importTag:static path="${frontContentHtmlPath}${category.id}/NAVIBAR.html"></importTag:static>
		<%} %>
	</c-rt:otherwise>
</c-rt:choose>